<? $attributes = array('class' => 'email', 'id' => 'checknew');
    echo form_open('lienhe/delslienhe', $attributes);?>

<table class="admindata" width="100%">
    <thead>
        <tr>
            <th colspan="5"> <input type="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
                Hiện có
                <?=$num?>
                bài viết
                <?=$pagination?>
            </th>
        </tr>
        <tr>
            <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
            <th>Người gởi</th>
            <th>Chủ đề</th>
            <th class="publish">Ngày gởi</th>
            <th class="publish">Chức năng</th>
        </tr>
    </thead>
    <?
        $k=1;
        $i=1;
        foreach($list as $rs):
        ?>
    <tr class="row<?=$k?>">
        <td><input type="checkbox" name="ar_id[]" value="<?=$rs->id?>"></td>
        <td><?=$rs->lb_cusname ?><br /><?=$rs->lb_cusmail ?><br /><?=$rs->nb_phone ?></td>
        <td><?=$rs->lb_subject?></td>
        <td align="center"><?=datevn($rs->dt_create)?></td>
        <td align="center"><?=icon_view('lienhe/view/'.$rs->id)?>
            <span id="publish<?=$rs->id?>"> <?=icon_active("'lienhe'","'id'",$rs->id,$rs->bl_active)?> </span>
            <?=icon_del('lienhe/del/'.$rs->id.'/'.(int)$this->uri->segment(4))?></td>
    </tr>
    <?
        $k=1-$k;
        $i++;
        endforeach;
	?>
    <tfoot>
    <td colspan="5"><input type="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
            Hiện có
            <?=$num?>
            bài viết
            <?=$pagination?></td>
            </tfoot>
</table>
<?=form_close()?>
